package com.jkd.mapper;

import com.jkd.model.pojo.Room;
import com.jkd.model.vo.RoomQueryVo;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface RoomMapper {

    @Select("select * from room where room_id=#{roomId}")
    Room selectById(Integer roomId);

    @Select("select * from room")
    List<Room> selectAll();

    List<Room> selectByCondition(RoomQueryVo roomQueryVo);

    @Select("select distinct room_num from room ")
   List<String> selectDistinctRoom();

    @Select("select distinct capacity from room")
    List<Integer> selectDistinctCapacity();

    int updateBy();
}
